package com.xixi.demo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import javax.management.loading.MLetContent;

/**
 * 返回状态码枚举类
 */
@AllArgsConstructor
public enum ResultCodeEnum {
    SUCCESS(1),
    FAIL(-1),
    NO_LOGIN(-2),

    NO_USERNAME_OR_PASSWORD(-3),

    NO_FIND_USERNAME(-4),

    ERROR_PASSWORD(-5),
    NO_TITLE(-6),
    NO_CONTENT(-7),
    NO__USERNAME_OR_PASSWORD_OR_GITHUB_URL(-8),

    NO_CAPTCHA(-9),
    ERROR_CAPTCHA(-10),
    OVER_TIME_CAPTCHA(-11);
    @Getter
    private int code;

}
